package subway;

public class StationDistance implements Comparable<StationDistance> {
    Station station;
    double distance;

    public StationDistance(Station station, double distance) {
        this.station = station;
        this.distance = distance;
    }

    @Override
    public int compareTo(StationDistance other) {
        return Double.compare(this.distance, other.distance);
    }
}    